package com.sasis.model;
// Generated 2007-4-24 16:31:48 by Hibernate Tools 3.1.0.beta4

import java.sql.Date;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="SERVER_BILL"
 *     
 */

public class ServerBill extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
    private String orderContent;
    private Date sentDate;
    private Integer sentMan;
    private Integer recDept;
    private Date recTime;
    private String callBack;
    private Integer callBackMan;


    // Constructors

    /** default constructor */
    public ServerBill() {
    }

    
    /** full constructor */
    public ServerBill(String orderContent, Date sentDate, Integer sentMan, Integer recDept, Date recTime, String callBack, Integer callBackMan) {
        this.orderContent = orderContent;
        this.sentDate = sentDate;
        this.sentMan = sentMan;
        this.recDept = recDept;
        this.recTime = recTime;
        this.callBack = callBack;
        this.callBackMan = callBackMan;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="ORDER_CONTENT"
     *             length="300"
     *         
     */

    public String getOrderContent() {
        return this.orderContent;
    }
    
    public void setOrderContent(String orderContent) {
        this.orderContent = orderContent;
    }
    /**       
     *      *            @hibernate.property
     *             column="SENT_DATE"
     *             length="7"
     *         
     */

    public Date getSentDate() {
        return this.sentDate;
    }
    
    public void setSentDate(Date sentDate) {
        this.sentDate = sentDate;
    }
    /**       
     *      *            @hibernate.property
     *             column="SENT_MAN"
     *             length="26"
     *         
     */

    public Integer getSentMan() {
        return this.sentMan;
    }
    
    public void setSentMan(Integer sentMan) {
        this.sentMan = sentMan;
    }
    /**       
     *      *            @hibernate.property
     *             column="REC_DEPT"
     *             length="26"
     *         
     */

    public Integer getRecDept() {
        return this.recDept;
    }
    
    public void setRecDept(Integer recDept) {
        this.recDept = recDept;
    }
    /**       
     *      *            @hibernate.property
     *             column="REC_TIME"
     *             length="7"
     *         
     */

    public Date getRecTime() {
        return this.recTime;
    }
    
    public void setRecTime(Date recTime) {
        this.recTime = recTime;
    }
    /**       
     *      *            @hibernate.property
     *             column="CALL_BACK"
     *             length="300"
     *         
     */

    public String getCallBack() {
        return this.callBack;
    }
    
    public void setCallBack(String callBack) {
        this.callBack = callBack;
    }
    /**       
     *      *            @hibernate.property
     *             column="CALL_BACK_MAN"
     *             length="26"
     *         
     */

    public Integer getCallBackMan() {
        return this.callBackMan;
    }
    
    public void setCallBackMan(Integer callBackMan) {
        this.callBackMan = callBackMan;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("orderContent").append("='").append(getOrderContent()).append("' ");			
      buffer.append("sentDate").append("='").append(getSentDate()).append("' ");			
      buffer.append("sentMan").append("='").append(getSentMan()).append("' ");			
      buffer.append("recDept").append("='").append(getRecDept()).append("' ");			
      buffer.append("recTime").append("='").append(getRecTime()).append("' ");			
      buffer.append("callBack").append("='").append(getCallBack()).append("' ");			
      buffer.append("callBackMan").append("='").append(getCallBackMan()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof ServerBill) ) return false;
		 ServerBill castOther = ( ServerBill ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getOrderContent()==castOther.getOrderContent()) || ( this.getOrderContent()!=null && castOther.getOrderContent()!=null && this.getOrderContent().equals(castOther.getOrderContent()) ) )
 && ( (this.getSentDate()==castOther.getSentDate()) || ( this.getSentDate()!=null && castOther.getSentDate()!=null && this.getSentDate().equals(castOther.getSentDate()) ) )
 && ( (this.getSentMan()==castOther.getSentMan()) || ( this.getSentMan()!=null && castOther.getSentMan()!=null && this.getSentMan().equals(castOther.getSentMan()) ) )
 && ( (this.getRecDept()==castOther.getRecDept()) || ( this.getRecDept()!=null && castOther.getRecDept()!=null && this.getRecDept().equals(castOther.getRecDept()) ) )
 && ( (this.getRecTime()==castOther.getRecTime()) || ( this.getRecTime()!=null && castOther.getRecTime()!=null && this.getRecTime().equals(castOther.getRecTime()) ) )
 && ( (this.getCallBack()==castOther.getCallBack()) || ( this.getCallBack()!=null && castOther.getCallBack()!=null && this.getCallBack().equals(castOther.getCallBack()) ) )
 && ( (this.getCallBackMan()==castOther.getCallBackMan()) || ( this.getCallBackMan()!=null && castOther.getCallBackMan()!=null && this.getCallBackMan().equals(castOther.getCallBackMan()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getOrderContent() == null ? 0 : this.getOrderContent().hashCode() );
         result = 37 * result + ( getSentDate() == null ? 0 : this.getSentDate().hashCode() );
         result = 37 * result + ( getSentMan() == null ? 0 : this.getSentMan().hashCode() );
         result = 37 * result + ( getRecDept() == null ? 0 : this.getRecDept().hashCode() );
         result = 37 * result + ( getRecTime() == null ? 0 : this.getRecTime().hashCode() );
         result = 37 * result + ( getCallBack() == null ? 0 : this.getCallBack().hashCode() );
         result = 37 * result + ( getCallBackMan() == null ? 0 : this.getCallBackMan().hashCode() );
         return result;
   }   





}
